import requests
import json

url = "http://10.79.13.103:80/scmp-manage/sys/index/getTotalQuantity"

payload = json.dumps({
   "startTime": "2024-04-12",
   "endTime": "2024-04-18"
})
headers = {
   'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZXNzaW9uSWQiOiIzOGNkNzdjMC01Yjc2LTRiZmEtODg0Ni1jMWQ4MDEwYTE1NTYiLCJleHAiOjE3MTM0NDA4MTksInVzZXJuYW1lIjoiYWRtaW4ifQ.8tnsjCEf1ZRBAT_O3rph1fDh7D6zLqGWplbaznlWc-c',
   'User-Agent': 'Apifox/01基础.0.0 (https://www.apifox.cn)',
   'Content-Type': 'application/json',
   'Accept': '*/*',
   'Host': '10.79.13.103:80',
   'Connection': 'keep-alive'
}

response = requests.request("POST", url, headers=headers, data=payload)

respText = json.loads(response.text)
print(respText['data'])